package com.example.activity_service.dao;


import com.example.activity_service.vo.Usersj;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface LZCdao {

    @Select("select * from hongbao ")
    List<Usersj> Query();

    @Select("select account from user_login where user_id=${user_id}")
    String userid(int user_id);



    @Insert("insert into hongbao (redenvelopes,parvalue,collectiontime) values(#{userid},#{parvalue},NOW())")
    int xzjd(String userid,String parvalue);

//    @Select("select account,tel from user_login where account=${account} and tel=${tel}")
//    List<Userdl> dlu(String account, String tel);

}
